<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>demo.html</title>
    <script>
        (function(){
            var ef = function(){};
            window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef};
        }());
    </script>
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
    <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/antd/2.13.2/antd.min.css">-->
    <!--<script src="https://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"></script>-->
    <!--<script src="${ctx!}/js/babel.min.js" type="text/javascript"></script>-->
    <script src="${ctx!}/js/require.js" type="text/javascript"></script>
    <script src="${ctx!}/node_engine/load?react,react-dom,react-bootstrap" type="text/javascript"></script>
    <!--<script src="/js/demo.js" type="text/javascript"></script>-->
</head>
<body>
    <div id="app"></div>
    <script type="text/javascript">
        var mei = {
            basePath:"${ctx!}"
        };
        require.config = {
            basePath:"${ctx!}"
        };
        var React = require("react");
        var ReactDOM = require("react-dom");
        //var Main = require("/react/main/Main.jsx");
        var Demo = require("/react/demo/Demo.jsx");
        /*ReactDOM.render(React.createElement("div",null,"xxxxxx"),
            document.getElementById('react-div')
        );*/
        ReactDOM.render(React.createElement(Demo,{x:"a"},null),
            document.getElementById("app")
        );
    </script>
</body>
</html>